package moviedatabase.connector;

public class ConnectorFactory {
	
	public DatabaseConnector createConnector(String database) {
		if (database.equals("MySQL")) {
			return new DatabaseConnectorMySql();
		} else if (database.equals("PostgreSQL")) {
			return new DatabaseConnectorPostgreSql();
		}
		
		return null;
	}
}